package com.hqd.ch03.v40.web.method.support;

import com.hqd.ch03.v40.core.MethodParameter;
import com.hqd.ch03.v40.web.context.request.NativeWebRequest;
import com.hqd.ch03.v40.web.servlet.support.ModelAndViewContainer;

/**
 * 返回值处理器
 */
public interface HandlerMethodReturnValueHandler {

    boolean supportsReturnType(MethodParameter returnType);

    void handleReturnValue(Object returnValue, MethodParameter returnType,
                           ModelAndViewContainer mavContainer, NativeWebRequest webRequest) throws Exception;
}

